package org.zcl.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zcl.entity.User;

/**
 * @author: ZCL
 * @since: 2021/10/15 14:19
 */
@RestController
public class UserController {

    @RequestMapping(value="/simple/{id}", method= RequestMethod.GET)
    User findById(@PathVariable("id") Long id){
        User user = new User();
        user.setId(111L);
        return user;
    }
}
